import 'package:flutter/material.dart';
import 'package:flutter_jd/tools/data/privacy.dart';
import 'package:flutter_jd/ui/widgets/body/top_bar.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get_state_manager/get_state_manager.dart';

// 隐私政策
class Privacy extends GetView {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: TopBar(
        title: '隐私政策',
        isBack: true,
      ),
      backgroundColor: Colors.white,
      body: SafeArea(
        bottom: false,
        child: SingleChildScrollView(
          child: Container(
            padding: EdgeInsets.fromLTRB(15.w, 20.h, 15.w, 20.h),
            child: Column(
              children: [
                Container(
                  child: Text(
                    '用户注册及使用APP隐私协议',
                    style: TextStyle(
                      fontSize: 17.sp,
                      fontWeight: FontWeight.w500,
                    ),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: 10.h),
                  child: Text(
                    privacy,
                    style: TextStyle(
                      height: 1.8.h,
                      fontSize: 14.sp,
                    ),
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
